package com.yuyou.activity.group.service.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.activity.group.service.entity.ActivityGroup;
import com.yuyou.activity.group.service.vo.resp.RespCanActivityGroupList;

@Mapper
public interface ActivityGroupMapper {
    int deleteByPrimaryKey(Long activityGroupId);

    int insert(ActivityGroup record);

    ActivityGroup selectByPrimaryKey(Long activityGroupId);

    int updateByPrimaryKeySelective(ActivityGroup record);
    
    /**
     * 推荐列表
     * @param projectCode
     * @return
     */
    List<RespCanActivityGroupList> findCanActivityGroup(String projectCode);
    
    List<RespCanActivityGroupList> findMoreCanActivityGroup(@Param(value = "projectCode")String projectCode,
    		@Param(value = "limit")int limit);
    
    
    long canAttActGro(String phone);

    void updateFailActivity();

}
